package com.mmall.service;

import com.mmall.common.ServerResponse;
import com.mmall.pojo.User;

/**
 * Created by lenovo on 2017/7/10.
 */
//以I开头表明为接口
public interface IUserService {

    ServerResponse<User> login (String username, String password);

    ServerResponse<String> register (User user);

    ServerResponse<String> checkvalid (String str,String type);

    ServerResponse selectQuestion(String username);

    ServerResponse<String> checkAnswer(String username,String question,String answer);

    ServerResponse<String> forgetResetPassword(String username,String passwordNew,String forgetToken);

    ServerResponse<String> resetPassword(String passwordOld,String passwordNew,User user);

}
